<div class="group-category-summary__detailLayout">
  {{#if self_signup}}
    <div class="group-category-summary__messages">
      <div>
        {{#t "self_signup_blurb"}}Self sign-up is enabled for these groups.{{/t}}
        {{#ifEqual self_signup "restricted"}}
          <span>{{#t "restricted_self_signup_blurb"}}All students in a group are required to be in the same section.{{/t}}</span>
        {{/ifEqual}}
        {{> [groups/manage/selfSignupHelp]}}
      </div>
      {{#if group_limit}}
        <div>{{#t "group_limit_blurb"}}Groups are limited to <strong>{{group_limit}}</strong> members.{{/t}}</div>
      {{/if}}
    </div>
  {{/if}}

  {{#unless randomlyAssignStudentsInProgress}}
  <div class="group-category-actions">
    {{#unless locked}}
      <button class="btn add-group" title="{{#t "add_group"}}Add Group{{/t}}"><i class='icon-plus'></i> {{#t "group"}}Group{{/t}}</button>
    {{/unless}}
    {{#unless protected}}
      <span>
        <a id="group-category-{{id}}-actions" class="al-trigger btn" role="button" aria-haspopup="true" aria-label="{{#t "settings"}}Settings{{/t}}" href="#">
          {{> icons/settings}}
          <span class="screenreader-only">{{#t "category_settings"}}Settings{{/t}}</span>
        </a>
        <ul class="al-options" role="menu" tabindex="0" aria-hidden="true" aria-expanded="false" aria-activedescendant="toolbar-2">
          {{#if canMessageMembers}}
             <li>
               <a href="#" class="icon-email message-all-unassigned" data-focus-returns-to="group-category-{{id}}-actions">
                 {{#t "message_all_unassigned_option"}}Message All Unassigned Students{{/t}}
               </a>
             </li>
          {{/if}}
          {{#if canAssignMembers}}
            <li>
              <a href="#" class="icon-user randomly-assign-members" data-focus-returns-to="group-category-{{id}}-actions">
                {{#t "randomly_assign_students_option"}}Randomly Assign Students{{/t}}
              </a>
            </li>
          {{/if}}
          <li>
            <a href="#" class="icon-edit edit-category" data-focus-returns-to="group-category-{{id}}-actions" >
              {{#t "edit_category_option"}}Edit{{/t}}
            </a>
          </li>
          {{#ifEqual ENV.group_user_type "student"}}
          <li>
            <a href="#" class="icon-copy-course clone-category">
              {{#t}}Clone Group Set{{/t}}
            </a>
          </li>
          {{/ifEqual}}
          <li>
            <a href="#" class="icon-trash delete-category">
              {{#t "delete_category_option"}}Delete{{/t}}
            </a>
          </li>
        </ul>
      </span>
    {{/unless}}
  </div>
  {{/unless}}
</div>

{{#if locked}}
  <div class="alert">
    {{> icons/warning}}
    {{#t "uncategorized_groups"}}
      These groups are not associated to any particular group set. Because
      they were imported via SIS, they can only be updated or deleted via
      SIS.
    {{/t}}
  </div>
{{/if}}

{{#ifEqual role "student_organized"}}
  <div class="alert student-organized-groups">{{> icons/warning}} {{#t "self_organized_warning"}}These groups are self-organized by students.  Unlike other types of groups, students can belong to more than one of these groups at a time, so these groups cannot be used for graded assignments.{{/t}}</div>
{{/ifEqual}}
